.class public abstract Lcom/burstly/lib/util/PrioritizedAsyncTask;
.super Landroid/os/AsyncTask;
.source "PrioritizedAsyncTask.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Landroid/os/AsyncTask",
        "<",
        "Ljava/lang/Void;",
        "Ljava/lang/Void;",
        "TT;>;"
    }
.end annotation


# instance fields
.field private mPriority:I


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 49
    .local p0, this:Lcom/burstly/lib/util/PrioritizedAsyncTask;,"Lcom/burstly/lib/util/PrioritizedAsyncTask<TT;>;"
    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    .line 35
    const/16 v0, 0x13

    iput v0, p0, Lcom/burstly/lib/util/PrioritizedAsyncTask;->mPriority:I

    .line 50
    return-void
.end method

.method public constructor <init>(I)V
    .locals 1
    .parameter "priority"

    .prologue
    .line 42
    .local p0, this:Lcom/burstly/lib/util/PrioritizedAsyncTask;,"Lcom/burstly/lib/util/PrioritizedAsyncTask<TT;>;"
    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    .line 35
    const/16 v0, 0x13

    iput v0, p0, Lcom/burstly/lib/util/PrioritizedAsyncTask;->mPriority:I

    .line 43
    invoke-virtual {p0, p1}, Lcom/burstly/lib/util/PrioritizedAsyncTask;->setPriority(I)V

    .line 44
    return-void
.end method


# virtual methods
.method protected bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1
    .parameter "x0"

    .prologue
    .line 30
    .local p0, this:Lcom/burstly/lib/util/PrioritizedAsyncTask;,"Lcom/burstly/lib/util/PrioritizedAsyncTask<TT;>;"
    check-cast p1, [Ljava/lang/Void;

    .end local p1
    invoke-virtual {p0, p1}, Lcom/burstly/lib/util/PrioritizedAsyncTask;->doInBackground([Ljava/lang/Void;)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method protected final varargs doInBackground([Ljava/lang/Void;)Ljava/lang/Object;
    .locals 3
    .parameter "params"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "([",
            "Ljava/lang/Void;",
            ")TT;"
        }
    .end annotation

    .prologue
    .line 54
    .local p0, this:Lcom/burstly/lib/util/PrioritizedAsyncTask;,"Lcom/burstly/lib/util/PrioritizedAsyncTask<TT;>;"
    invoke-static {}, Landroid/os/Process;->myTid()I

    move-result v2

    invoke-static {v2}, Landroid/os/Process;->getThreadPriority(I)I

    move-result v0

    .line 55
    .local v0, priority:I
    iget v2, p0, Lcom/burstly/lib/util/PrioritizedAsyncTask;->mPriority:I

    invoke-static {v2}, Lcom/burstly/lib/util/Utils;->setCurrentThreadPriority(I)V

    .line 56
    invoke-virtual {p0}, Lcom/burstly/lib/util/PrioritizedAsyncTask;->performInBackground()Ljava/lang/Object;

    move-result-object v1

    .line 57
    .local v1, result:Ljava/lang/Object;,"TT;"
    invoke-static {v0}, Lcom/burstly/lib/util/Utils;->setCurrentThreadPriority(I)V

    .line 58
    return-object v1
.end method

.method public getPriority()I
    .locals 1

    .prologue
    .line 74
    .local p0, this:Lcom/burstly/lib/util/PrioritizedAsyncTask;,"Lcom/burstly/lib/util/PrioritizedAsyncTask<TT;>;"
    iget v0, p0, Lcom/burstly/lib/util/PrioritizedAsyncTask;->mPriority:I

    return v0
.end method

.method protected abstract performInBackground()Ljava/lang/Object;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()TT;"
        }
    .end annotation
.end method

.method public setPriority(I)V
    .locals 1
    .parameter "priority"

    .prologue
    .line 83
    .local p0, this:Lcom/burstly/lib/util/PrioritizedAsyncTask;,"Lcom/burstly/lib/util/PrioritizedAsyncTask<TT;>;"
    const/16 v0, -0x13

    if-gt v0, p1, :cond_0

    const/16 v0, 0x13

    if-gt p1, v0, :cond_0

    .line 84
    iput p1, p0, Lcom/burstly/lib/util/PrioritizedAsyncTask;->mPriority:I

    .line 86
    :cond_0
    return-void
.end method
